import request from '@/utils/request'
/**
 * 账户
 * @param {*} params
 */

//修改商户信息
export function platUpdate(params) {
  return request({
    url: '/dinner/ICBC/platUpdate',
    method: 'post',
    params
  })
} 
   

// 工行 上传图片加密
export function vendorPicUpload(params) {
  return request({
    url: '/dinner/ICBC/vendorPicUpload',
    method: 'post',
    params
  }) 
}
// 商户注册
export function platRegist(params) {
  // return request({
  //   url: '/dinner/ICBC/platRegist',
  //   method: 'post',
  //   timeout: 10000,
  //   params
  // })

  return request({
    url: '/dinner/ICBC/memberRegister',
    method: 'post',
    timeout: 10000,
    params
  })
}
// 工行 分行查询
export function queryBankCode(params) {
  return request({
    url: '/dinner/ICBC/queryBankCode',
    method: 'post',
    params,
    timeout: 10000
    
  })
}

//工行 结算 /提现
export function ICBCwithdraw(params) {
  return request({
    url: '/dinner/ICBC/withdraw',
    method: 'post',
    params
  })
}

// 图片ocr
export function photoOcr(params) {
  return request({
    url: '/front/icbc/ocr',
    method: 'post',
    params
  })
}
 
 
// 众茶优选公众号获取openid
export function getWxZcyxH5OpenId(params) {
  return request({
    url: '/front/xcxPay/wxH5LoginZcyx',
    method: 'post',
    params
  })
}

// 众茶优选公众号绑定手机号
export function zcyxSaveSignInH5(params) {
  return request({
    url: '/dinner/zcyx/vip/record/saveSignInH5',
    method: 'post',
    params
  })
}
